import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { ShareModule } from 'app/shared/ShareModule';
import { NgZorroAntdModule } from 'ng-zorro-antd';
import { NgxEchartsModule } from 'ngx-echarts';
import { DataManagementComponent } from './data-management.component';
import { TrafficDataReportComponent } from './traffic-data-report/traffic-data-report.component';
import { TrafficAccidentReportComponent } from './traffic-accident-report/traffic-accident-report.component';
import { RoadCongestionReportComponent } from './road-congestion-report/road-congestion-report.component';
import { IntersectionTrafficVolumeReportComponent } from './intersection-traffic-volume-report/intersection-traffic-volume-report.component';
import { IntersectionCongestionReportComponent } from './intersection-congestion-report/intersection-congestion-report.component';
import { TechnicalAlarmReportComponent } from './technical-alarm-report/technical-alarm-report.component';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { PublicComponentModule } from 'app/public/public-component.module';
const COMPONENT = [
    DataManagementComponent,
    TrafficDataReportComponent,
    TrafficAccidentReportComponent,
    RoadCongestionReportComponent,
    IntersectionTrafficVolumeReportComponent,
    IntersectionCongestionReportComponent,
    TechnicalAlarmReportComponent
];

const routes: Routes = [
    {
        path: '',
        component: DataManagementComponent,
        children: [
            { path: '', redirectTo: 'traffic-data-report', pathMatch: 'full' },
            { path: 'traffic-data-report', component: TrafficDataReportComponent },
            { path: 'traffic-accident-report', component: TrafficAccidentReportComponent },
            { path: 'road-congestion-report', component: RoadCongestionReportComponent },
            { path: 'intersection-traffic-volume-report', component: IntersectionTrafficVolumeReportComponent },
            { path: 'intersection-congestion-report', component: IntersectionCongestionReportComponent },
            { path: 'technical-alarm-report', component: TechnicalAlarmReportComponent }
        ]
    }
];
@NgModule({
    imports: [
        ShareModule,
        NgxEchartsModule,
        RouterModule.forChild(routes),
        NgZorroAntdModule,
        FormsModule,
        ReactiveFormsModule,
        PublicComponentModule
    ],
    declarations: COMPONENT
})
export class DataManagementModule {}
